import request from "@/utils/request";

// 查询团购预约列表
export function listBizO2oOrder(query){
  return request({
    url: "/biz/bizO2oOrder/list",
    method: "get",
    params: query
  })
}

// 查询团购预约详细
export function getBizO2oOrder(id){
  return request({
    url: "/biz/bizO2oOrder/" + id,
    method: "get"
  })
}

// 新增团购预约
export function addBizO2oOrder(data){
  return request({
    url: "/biz/bizO2oOrder",
    method: "post",
    data: data
  })
}

// 修改团购预约
export function updateBizO2oOrder(data){
  return request({
    url: "/biz/bizO2oOrder",
    method: "put",
    data: data
  })
}

// 删除团购预约
export function delBizO2oOrder(id){
  return request({
    url: "/biz/bizO2oOrder/" + id,
    method: "delete"
  })
}

// 查询最大编号
export function findMaxSort(){
  return request({
    url: "/biz/bizO2oOrder/findMaxSort",
    method: "get"
  })
}
// 导出团购预约
export function exportBizO2oOrder (query){
  return request({
    url: "/biz/bizO2oOrder/export",
    method: "get",
    params: query
  })
}
